


$$('.form-to-json').on('click', function(){
  var formData = myApp.formToJSON('#form1');
  alert(JSON.stringify(formData));
  $$('#form1').submit();
});